let menu = {};

/**
 * 首页
 * @type {{name: string, path: string, icon: string}}
 */
menu.home = {
  name: '首页',
  path: '/',
  icon: 'fa fa-tachometer',
  permission: [1,2,3,4,5,6]
};

/**
 * 客户管理
 * @type {{name: string, icon: string, children: {}}}
 */
menu.user_manage = {
  name: '客户管理',
  icon: 'fa fa-user-circle-o',
  children: {},
  permission: [1,2]
};
let UserManage = menu.user_manage.children;

UserManage.user = {
  name: '客户列表',
  path: '/dclient/list',
};

/**
 * 备件管理
 * @type {{name: string, icon: string, children: {}}}
 */
menu.content_manage = {
  name: '备件管理',
  icon: 'fa fa-file-text-o',
  children: {},
  permission: [1,4]
};

let ContentManage = menu.content_manage.children;

ContentManage.post = {
  name: '备件列表',
  path: '/part_list',
};

/**
 * 报修管理
 */
menu.service_manage = {
  name: '报修管理',
  icon: 'fa fa-tasks',
  children: {},
  permission: [1,2]
};

let ServiceManager = menu.service_manage.children;

ServiceManager.part = {
  name: '报修列表',
  path: '/service_list',
};

/**
 * 维修管理
 */
menu.maintence_manage = {
  name: '维修管理',
  icon: 'fa fa-bug',
  children: {},
  permission: [1,4]
};

let MaintenceManager = menu.maintence_manage.children;


MaintenceManager.record = {
  name: '维修记录',
  path: '/dMaintenance',
};

/**
 * 运营监督管理
 */
menu.operating_manage = {
  name: '运营监督管理',
  icon: 'fa fa-bus',
  children: {},
  permission: [1,6]
};

let OperatingManager = menu.operating_manage.children;

OperatingManager.manager = {
  name: '维修任务查询',
  path: '/supervision/findDMaintenanceList',
};
OperatingManager.kucun = {
  name: '库存查询',
  path: '/part/partList',
};
OperatingManager.sum = {
  name: '结算信息查询',
  path: '/payoff/findPayoffList',
};
OperatingManager.client = {
  name: '客户信息查询',
  path: '/supervision/findClientList',
};

/**
 * 权限管理
 */
menu.permission_manage = {
  name: '用户管理',
  icon: 'fa fa-qrcode', 
  children: {},
  permission: [1]
};
let PermissionManage = menu.permission_manage.children;

PermissionManage.user = {
  name: '用户列表',
  path: '/user_manage',
};

PermissionManage.role = {
  name: '角色列表',
  path: '/role_manage',
};


/**
 * 分类管理
 * @type {{name: string, icon: string, children: {}}}
 */
// menu.category_manage = {
//   name: '分类管理',
//   icon: 'fa fa-sitemap',
//   children: {},
// };
// let CategoryManage = menu.category_manage.children;

// CategoryManage.category = {
//   name: '分类列表',
//   path: '/category_manage',
// };

/**
 * 图标选择器
 * @type {{name: string, icon: string, children: {}}}
 */
menu.icon_manage = {
  name: '图标选择器',
  icon: 'fa fa-sitemap',
  children: {},
  permission: [1,2,3,4,5,6]
};
let IconManage = menu.icon_manage.children;

IconManage.category = {
  name: '图标选择',
  path: '/icon_manage',
};


export default menu;
